<?php
namespace app\shop\controller;
class Goodsprice extends Base
{
    //计算属性html
    public function countattr(){
        if(is_post()){
            $d = $this->post;
            $temp = [];
            foreach($d['attr_list'] as $k => $v){
                $temp[$v] = $d['value_list'][$k];
            }
            $rs = m('GoodsPrice','c')->CountAttr($temp);
            suc($rs);
        }
    }
}
?>
